package com.oocl.chat.pojo;

import java.io.Serializable;

public class Message implements Serializable{
	
	private static final long serialVersionUID = -3657272722856367350L;
	private String sender;
	private String reciever;
	private String content;
	private long time;
	private int type;
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getReciever() {
		return reciever;
	}
	public void setReciever(String reciever) {
		this.reciever = reciever;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public Message(){
		
	}
	public Message(String sender, String reciever, String content, long time,
			int type) {
		super();
		this.sender = sender;
		this.reciever = reciever;
		this.content = content;
		this.time = time;
		this.type = type;
	}
	@Override
	public String toString() {
		return "Message [sender=" + sender + ", reciever=" + reciever
				+ ", content=" + content + ", time=" + time + ", type=" + type
				+ "]";
	}
	
}
